package com.hmall.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "shop_category")
public class ShopCategory {
    /**
     * 分类id
     */
    @Id
    @Column(name = "category_id")
    private Integer categoryId;

    /**
     * 分类名称
     */
    @Column(name = "category_name")
    private String categoryName;

    @Column(name = "shop_id")
    private Integer shopId;

    /**
     * 状态 0:未启用  1:已启用
     */
    private Integer status;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_time")
    private Date updateTime;

    /**
     * 说明
     */
    private String instructions;

    @Column(name = "parent_id")
    private Integer parentId;

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    /**
     * 获取分类id
     *
     * @return catogory_id - 分类id
     */
    public Integer getCategoryId() {
        return categoryId;
    }

    /**
     * 设置分类id
     *
     * @param catogoryId 分类id
     */
    public void setCategoryId(Integer catogoryId) {
        this.categoryId = catogoryId;
    }

    /**
     * 获取分类名称
     *
     * @return category_name - 分类名称
     */
    public String getCategoryName() {
        return categoryName;
    }

    /**
     * 设置分类名称
     *
     * @param categoryName 分类名称
     */
    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    /**
     * @return shop_id
     */
    public Integer getShopId() {
        return shopId;
    }

    /**
     * @param shopId
     */
    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }

    /**
     * 获取状态 0:未启用  1:已启用
     *
     * @return status - 状态 0:未启用  1:已启用
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 设置状态 0:未启用  1:已启用
     *
     * @param status 状态 0:未启用  1:已启用
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * @return create_time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * @return update_time
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * @param updateTime
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 获取说明
     *
     * @return instructions - 说明
     */
    public String getInstructions() {
        return instructions;
    }

    /**
     * 设置说明
     *
     * @param instructions 说明
     */
    public void setInstructions(String instructions) {
        this.instructions = instructions;
    }
}